package cn.kgc.crowdfundingadminspringboot.service;

import cn.kgc.crowdfundingadminspringboot.pojo.Auth;

import java.util.List;
import java.util.Map;

/**
 * 项目名：crowd-funding-admin-springboot2
 * 创建人：Junyizm
 * 创建时间：2020/3/2-18:08
 */
public interface AuthService {
    public List<Auth> getAllAuth();

    //根据角色查询权限id
    public List<Integer> getAssignedAuthIdList(Integer roleId);

    //分配权限
    public void updateRelationShipBetweenRoleAndAuth(Map<String, List<Integer>> assignDataMap);

    //根据角色查询权限
    public List<Auth> selectByRoleIds(List<Integer> roleIds);

}
